public class Person {

    String name;
    String sex;
    int age;

    public Person(String name,String sex,int age){
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

//    没有自己设置 toString 结果只会打印出一串地址
    public String toString(){
        return "[" + name + "," + sex + "," + age + "]";
    }


}
